﻿/*
 * Created by SharpDevelop.
 * User: Masy Freddy
 * Date: 19/09/2011
 * Time: 13:03
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;

namespace mveEngine.Comparer
{
	/// <summary>
	/// Description of CrewComparer.
	/// </summary>
	public class CrewComparer: IEqualityComparer<CrewMember>
    {
        public bool Equals(CrewMember x, CrewMember y)
        {
            if (x == null || y == null)
            {
                return false;
            }

            if (x.Name.ToLower().CompareTo(y.Name.ToLower()) == 0)
            {
                return true;
            }

            return false;
        }

        public int GetHashCode(CrewMember obj)
        {
            return 0;
        }
    }
}
